package 创建者模式.原型模式.ps_DeepCopy;

import java.io.Serializable;

/**
 * @Description TODO
 * @Author shallow
 * @Date 2023/3/4 12:22
 */

public class Citation implements Cloneable, Serializable {

    private Student stu;

    public Student getStu() {
        return stu;
    }

    public void setStu(Student stu) {
        this.stu = stu;
    }

    public void show(){
        System.out.println(stu.getName()+"同学是三好学生！");
    }

    @Override
    protected Citation clone() throws CloneNotSupportedException {
        return (Citation) super.clone();
    }
}
